package la.bbs558.service;

import cn.hutool.captcha.LineCaptcha;
import la.bbs558.entity.enums.RedisKey;

public interface VerifyCodeService {
    /**
     * 创建验证码
     */
    LineCaptcha createSignInCode(String username);

    /**
     * 验证验证码
     */
    void verifyCode(RedisKey redisKey, String username, String code);

    /**
     * 删除验证码
     */
    void removeCode(RedisKey redisKey, String key);
    /**
     * 发送注册验证码
     */
    void sendSignUpCode(String username);

    /**
     * 发送找回密码验证码
     */
    void sendForGetCode(String username);

}
